<ion-view view-title="新品赠送">
	<ion-nav-buttons side="right">
			<button class="button button-clear font-large-my" on-tap="onshow_give()">发布活动</button>
	</ion-nav-buttons>


  	<div class="bar bar-subheader padding-bottom-0">
  	    <div class="row padding-0 text-center font-large-my">
	 		<div class="col" ng-class="selectTab==0?'assertive':''" on-tap="activeTab(0)">
	 			新品赠送一览
	 		</div>
	 		<div class="col" ng-class="selectTab==1?'assertive':''" on-tap="activeTab(1)">
	 			我的新品赠送
	 		</div>
	 	</div>
	 	</div>
	 	<ion-content class="has-subheader">
    <ion-refresher pulling-text="下拉刷新..." on-refresh="doRefresh()"></ion-refresher>

	<ion-slide-box delegate-handle="tab-handle" on-slide-changed="slideChanged(index)" active-slide="slideIndex" show-pager="false">
  	<!--描述：1、新品赠送一览-->
	<ion-slide>
		<!--二级导航-->
		<div class="row padding-0 text-center font-large-my">
	 		<div class="col" ng-class="selectTab_second==0?'top-activated':''" on-tap="activeTab_second(0)">
	 			进行中
	 		</div>
	 		<div class="col" ng-class="selectTab_second==1?'top-activated':''" on-tap="activeTab_second(1)">
	 			待审批
	 		</div>
	 		<div class="col" ng-class="selectTab_second==2?'top-activated':''" on-tap="activeTab_second(2)">
	 			已结束
	 		</div>
	    </div>

	<ion-slide-box delegate-handle="tab-handle_second" on-slide-changed="slideChanged_second(index)" show-pager="false">
		<!--进行中-->
		<ion_slide>
		 <div class="list list-borderless" ng-repeat="num in data.act">
			<div class="item item-thumbnail-left" style="padding-right: 5px; padding-bottom:0px; padding-top:0px;">
					<img src="{{num.image.image}}">
					<p>{{num.goods.name}}</p>
					<p><span class="assertive">{{num.name}}</span><span class="right-zhang balanced">活动中...</span></p>
					<p><i class="icon ion-clock"></i>{{num.start_time}}</p>
					<p><i class="icon ion-clock"></i>{{num.end_time}}</p>
					<p>
						<i class="icon ion-android-contacts assertive"></i>群互动
						<!--<span on-tap="onshow_save()"><i class="icon ion-person assertive"></i>抽选用户</span>
						<span on-tap="onshow_submit()"><i class="icon ion-bag assertive"></i>抽奖</span>
						<span on-tap="onshow_statistics_present()"><i class="icon ion-android-options assertive"></i>统计</span>-->
					</p>
			</div>
		 </div>
		</ion_slide>

		<!--待审批-->
		<ion_slide>
		  <div class="list list-borderless" ng-repeat="num in data.act">
			<div class="item item-thumbnail-left" style="padding-right: 5px; padding-bottom:0px; padding-top:0px;">
					<img src="{{num.image.image}}">
					<p>{{num.goods.name}}</p>
					<p><span class="assertive">{{num.name}}</span><span class="right-zhang energized">待审批</span></p>
					<p><i class="icon ion-clock"></i>{{num.start_time}}</p>
					<p><i class="icon ion-clock"></i>{{num.end_time}}<i class="icon ion-compose  font-1rem-my right-zhang positive" on-tap="onshow_give(num.act_id)"></i></p>
			</div>
		 </div>
		</ion_slide>

		<!--已结束-->
		<ion_slide>
			 <div class="list list-borderless" ng-repeat="num in data.act">
			<div class="item item-thumbnail-left" style="padding-right: 5px; padding-bottom:0px; padding-top:0px;">
					<img src="{{num.image.image}}">
					<p>{{num.goods.name}}</p>
					<p><span class="assertive">{{num.name}}</span><span class="right-zhang">已结束</span></p>
					<p><i class="icon ion-clock"></i>{{num.start_time}}</p>
					<p><i class="icon ion-clock"></i>{{num.end_time}}</p>
					<!--<p>
						<span on-tap="onshow_save()"><i class="icon ion-person assertive"></i>抽选用户</span>
						<span on-tap="onshow_submit()"><i class="icon ion-bag assertive"></i>抽奖</span>
						<i class="icon ion-android-contacts assertive"></i>群互动
						<span on-tap="onshow_statistics_present()"><i class="icon ion-android-options assertive"></i>统计</span>
					</p>-->
			</div>
			<li class="item padding-0 text-center">
				<div class="row padding-0 font-large-my font-gray-my">
					<div class="col padding-0 col-33" on-tap="onshow_save()"><i class="icon ion-person assertive"></i>抽选用户</div>
					<div class="col padding-0" on-tap="onshow_submit()"><i class="icon ion-bag assertive"></i>抽奖</div>
					<div class="col padding-0"><i class="icon ion-android-contacts assertive"></i>群互动</div>
					<div class="col padding-0" on-tap="onshow_statistics_present()"><i class="icon ion-android-options assertive"></i>统计</div>
				</div>
			</li>
		 </div>
		</ion_slide>
	 </ion-slide-box>
	</ion-slide>

		<!--描述：2、我的新品赠送-->
		<ion-slide>
			 <div class="list list-borderless" ng-repeat="num in list.act">
			<div class="item item-thumbnail-left" style="padding-right: 5px; padding-bottom:0px;">
					<img src="{{num.image.image}}">
					<p >{{num.name}}</p>
					<!--<span class="assertive">{{num.name}}</span><span class="margin-left-10-my positive">{{num.status}}...</span><i class="icon ion-compose  font-1rem-my right-zhang positive"></i></p>-->
					<p><i class="icon ion-clock"></i>{{num.start_time}}</p>
					<p><i class="icon ion-clock"></i>{{num.end_time}}</p>
					<p>
						<i class="icon ion-ios-alarm-outline assertive"></i>{{num.prize_status}}<!--等待批准-->
						<i class="icon ion-ios-list-outline assertive margin-left-10-my"></i>查看订单
					</p>
			  </div>
		 </div>
		</ion-slide>
	 </ion-slide-box>
	  <ion-infinite-scroll ng-if="!isLoad" immediate-check="false" on-infinite="doRefreshMore()" distance="1%"></ion-infinite-scroll>
	</ion-content>
</ion-view>